<!DOCTYPE html>
<html lang="zh">
	<head>

		<meta charset="UTF-8">

		<title>
			@section('title')
HardwareLab - {{ lang('HardwareLab') }}
			@show
		</title>

		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <meta name="keywords" content="{{ lang('HardwareLab') }}" />
        <meta name="author" content="HardwareLab Members" />

        <link rel="stylesheet" href="{{ cdn('assets/css/'.Asset::styles('frontend')) }}">

        <link rel="shortcut icon" href="{{ cdn('favicon.ico') }}"/>

        <script>
            Config = {
                'cdnDomain': '{{ getCdnDomain() }}',
                'user_id': {{ $currentUser ? $currentUser->id : 0 }},
                'routes': {
                    'notificationsCount' : '{{ route('notifications.count') }}',
                    'upload_image' : '{{ route('upload_image') }}'
                },
                'token': '{{ csrf_token() }}',
            };
        </script>

	    @yield('styles')

	</head>
	<body id="body">

		<div id="wrap">

			@include('layouts.partials.nav')

			<div class="container">

				@include('flash::message')

				@yield('content')

			</div>

		</div>

	  <div id="footer" class="footer">
	    <div class="container small">
	      <p class="pull-left">
            <i class="fa fa-heart-o"></i> 2015~{{date('Y')}} <a href="https://github.com/HardwareLabs" style="color:#989898;">By HardwareLab Group</a>. <br>
            &nbsp;<i class="fa fa-lightbulb-o"></i> Inspired by <a href="https://github.com/summerblue/phphub" style="color:#989898;">PHPHub</a> & <a href="https://www.shiyanlou.com/" style="color:#989898;">实验楼</a>.
	      </p>

	      <p class="pull-right">
            <a href="#" target=""><img src="{{ cdn('assets/images/hardwarelab.png')  }}" width="98" data-toggle="tooltip" data-placement="top" title="{{ lang('HardwareLab') }}"></a>.
	      </p>
	    </div>
	  </div>

        <script src="{{ cdn('assets/js/'.Asset::scripts('frontend')) }}"></script>

	    @yield('scripts')

	</body>
</html>
